module.exports = function($obj, msg, $parent){
  msg = msg || '';

  $obj.html(msg+'');
  if($parent){
    $parent.addClass('has-error');
  }

  clearTimeout( window.errorTimer );
  window.errorTimer = setTimeout( ()=>{
    $obj.html('');
    if($parent){
      $parent.removeClass('has-error');
    }
  }, 3600 );
};
